package testing;

/**
 * 
 * @author Dastan Yessekeyev
 *
 */
import java.io.File;
import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;

public class BlastedLogger {
	static private FileHandler fileTxt;
	static private SimpleFormatter formatterTxt;
	static private File file;

	static public void setup() throws IOException {
		Logger logger = Logger.getLogger("");
		logger.setLevel(Level.FINE);
		fileTxt = new FileHandler("Logging.txt");

		formatterTxt = new SimpleFormatter();
		fileTxt.setFormatter(formatterTxt);
		logger.addHandler(fileTxt);
		logger.fine("Logger setup complete");

	}
}
